      SUBROUTINE SETUP
      RETURN
      END
C   HS77
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS77'/
      DATA (X(I),I=1,5)/5* 2.D0/
      DATA N/5/ , NH/2/ , NG/ 0/
      DATA DEL0/1.00D0/ ,TAU0/1.D0/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,2)/-1,0,0,-1,0,0,-1,0,0/
      END
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=(X(1)-1.D0)**2+(X(1)-X(2))**2+(X(3)-1.D0)**2+(X(4)-1.D0)**4
     1      +(X(5)-1.D0)**6
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)=4.D0*X(1)-2.D0*X(2)-2.D0
      GRADF(2)=-2.D0*(X(1)-X(2))
      GRADF(3)=2.D0*(X(3)-1.D0)
      GRADF(4)=4.D0*(X(4)-1.D0)**3
      GRADF(5)=6.D0*(X(5)-1.D0)**5
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),HXI
      CRES(I)=CRES(I)+1
      IF(I .EQ. 1)   HXI=X(1)**2*X(4)+DSIN(X(4)-X(5))-2.D0*DSQRT(2.D0)
      IF(I .EQ. 2)   HXI=X(2)+X(3)**4*X(4)**2-8.D0-DSQRT(2.D0)
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      IF(I .EQ. 2)     GOTO 100
      GRADHI(1)=2.D0*X(1)*X(4)
      GRADHI(2)=0.D0
      GRADHI(3)=0.D0
      GRADHI(4)=X(1)**2+DCOS(X(4)-X(5))
      GRADHI(5)=-DCOS(X(4)-X(5))
      RETURN
  100 CONTINUE
      GRADHI(1)= 0.D0
      GRADHI(2)= 1.D0
      GRADHI(3)=4.D0*X(3)**3*X(4)**2
      GRADHI(4)=2.D0*X(3)**4*X(4)
      GRADHI(5)=0.D0
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GXI
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      RETURN
      END

